Don't waste memory
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Feb 2012 05:37:58 +0000 (00:37 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Feb 2012 21:36:51 +0000 (16:36 -0500)
gtk/gtkcolorplane.c

index 644203484401ce05a7af41318dcc884d2c4c934f..ea1fec545e6581f669d651fe2d494b252489d795 100644 (file)
@@ -116,7 +116,7 @@ create_sv_surface (GtkColorPlane *plane)
 
   stride = cairo_format_stride_for_width (CAIRO_FORMAT_RGB24, width);
 
-  data = g_malloc (4 * height * stride);
+  data = g_malloc (height * stride);
 
   h = plane->priv->h;
   sf = 1.0 / (height - 1);